import subprocess

class WiFiConnector:
    def connect(self, ssid: str, password: str):
        """连接WiFi"""
        subprocess.run(["nmcli", "d", "wifi", "connect", ssid, "password", password])